using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GameStateManagement.View.Gui.Components
{
    class TextField : GuiComponent
    {
        public String Text { get; set; }
        private readonly SpriteFont _font;
        public TextField(Vector2 position, SpriteFont font)
            : base(position, 0, 0)
        {
            _font = font;
            Text = String.Empty;
            Color = Color.Red;
        }

        public override void Update(GameTime gameTime)
        {
 
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.DrawString(_font, Text, Position, Color);
        }
    }
}
